
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html class="fb-ui" fb-ui="context" fb-context="context">
<head>
    <title>数据源配置-新增页</title>
    <%@include file="/WEB-INF/jsp/common/meta.jsp" %>
    <link href="<%=contextPath%>/resource/fb-classic/css/save/save.min.css" rel="stylesheet"/>
</head>
<body>
<div class="ui-save">
    <div class="ui-save-form">
        <form id="J_form"
              fb-ui="formhelper"
              fb-validator="true"
              fb-validator-option="{theme:'yellow_top'}">

            <div class="ui-fieldset">
                <div class="ui-fields-legend">
                    <span>基础信息</span>
                </div>
                <div class="ui-fields-container">
                    <table style="table-layout: fixed;">
                        <colgroup>
                            <col style="width: 24%"/>
                            <col style="width: 76%"/>
                        </colgroup>

                        <tr>
                            <th>连接名称：<img src="<%=contextPath%>/resource/fb-classic/img/menu/require.png"></th>
                            <td>
                                <input name="connName"
                                       fb-width="100%"
                                       fb-rule="required;length[~20, true];"
                                       fb-ui="textfield"/>
                            </td>
                        </tr>
                        <tr>
                            <th>服务器地址：<img src="<%=contextPath%>/resource/fb-classic/img/menu/require.png"></th>
                            <td>
                                <input name="serverAddr"
                                       fb-width="100%"
                                       fb-rule="required;length[~20, true];"
                                       fb-ui="textfield"/>
                            </td>
                        </tr>
                        <tr>
                            <th>数据库类型：<img src="<%=contextPath%>/resource/fb-classic/img/menu/require.png"></th>
                            <td>
                                <input name="type"
                                       fb-width="100%"
                                       fb-pcode="#dbType"
                                       fb-rule="required;length[~10, true];"
                                       fb-ui="dic-selecter"/>
                            </td>
                        </tr>
                        <tr>
                            <th>数据库名称：<img src="<%=contextPath%>/resource/fb-classic/img/menu/require.png"></th>
                            <td>
                                <input name="name"
                                       fb-width="100%"
                                       fb-rule="required;length[~10, true];"
                                       fb-ui="textfield"/>
                            </td>
                        </tr>
                        <tr>
                            <th>端口号：<img src="<%=contextPath%>/resource/fb-classic/img/menu/require.png"></th>
                            <td>
                                <input name="port"
                                       fb-width="100%"
                                       fb-rule="required;length[~10, true];"
                                       fb-ui="textfield"/>
                            </td>
                        </tr>
                        <tr>
                            <th>连接账号：<img src="<%=contextPath%>/resource/fb-classic/img/menu/require.png"></th>
                            <td>
                                <input name="user"
                                       fb-width="100%"
                                       fb-rule="required;length[~10, true];"
                                       fb-ui="textfield"/>
                            </td>
                        </tr>
                        <tr>
                            <th>连接密码：<img src="<%=contextPath%>/resource/fb-classic/img/menu/require.png"></th>
                            <td>
                                <input name="password"
                                       fb-width="100%"
                                       fb-rule="required;length[~10, true];"
                                       type="password"
                                       fb-ui="textfield"/>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </form>
    </div>
</div>
<%@include file="/WEB-INF/jsp/common/fb.jsp" %>
<script>
    fb.app("etl.etldatasourcecfg.EtlDatasourcecfgApp", function () {
        Firebird.create("etldatasourcecfg.EditApp");
    });
</script>
</body>
</html>
